package com.hxzy.controller.admin.dict.resp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.hxzy.common.annotates.DictTypeProperty;
import com.hxzy.common.enums.DictTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@ApiModel(value = "数据字典值")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DictDataResp {

    @ExcelProperty(value = "主键")
    @ApiModelProperty(name = "id",value = "主键",dataType = "Long")
    private Long id;


    /**
     * 字典类型
     */
    @ExcelProperty(value = "字典类型")
    @ApiModelProperty(name = "dictType",value = "字典类型",dataType = "String")
    private String dictType;


    /**
     * 字典标签
     */
    @ExcelProperty(value = "字典标签")
    @ApiModelProperty(name = "dictLabel",value = "字典标签",dataType = "String")
    private String dictLabel;

    /**
     * 字典键值
     */
    @ExcelProperty(value = "字典键值")
    @ApiModelProperty(name = "dictValue",value = "字典键值",dataType = "String")
    private String dictValue;


    /**
     * 字典排序
     */
    @ExcelProperty(value = "字典排序")
    @ApiModelProperty(name = "dictSort",value = "字典排序",dataType = "Integer")
    private Integer dictSort;

    /**
     * 表格回显样式
     */
    @ExcelProperty(value = "表格回显样式")
    @ApiModelProperty(name = "listClass",value = "样式",dataType = "String")
    private String listClass;

    /**
     * 状态（0正常 1停用）
     */
    @DictTypeProperty(value = DictTypeEnum.SYS_NORMAL_DISABLE)
    @ExcelProperty(value = "状态")
    @ApiModelProperty(name = "status",value = "状态（0正常 1停用）",dataType = "String")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty(name = "remark",value = "备注",dataType = "String")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty(name = "createTime",value = "创建时间" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
